package com.auxgroup.smarthome.enterpriseapi.responsebody;

import com.alibaba.fastjson.JSONObject;

import java.util.List;

/**
 * {"start": "2017-03-22", "gid": null, "cycle": "date", "end": "2017-03-23", "data": [{"date": "2017-03-22", "count": 0}]}
 * Created by kevinchen on 2017/3/12.
 */
public class UserNewaddReport extends AbstractErrorBody {
    private String cycle;
    private String start;
    private String end;
    private String gid;

    private List<HistoryList> data;

    public String getCycle() {
        return cycle;
    }

    public void setCycle(String cycle) {
        this.cycle = cycle;
    }

    public String getStart() {
        return start;
    }

    public void setStart(String start) {
        this.start = start;
    }

    public String getEnd() {
        return end;
    }

    public void setEnd(String end) {
        this.end = end;
    }

    public String getGid() {
        return gid;
    }

    public void setGid(String gid) {
        this.gid = gid;
    }

    public List<HistoryList> getData() {
        return data;
    }

    public void setData(List<HistoryList> data) {
        this.data = data;
    }

    public static class HistoryList{
        private String week;
        private String month;
        private String date;
        private int count ;
        private JSONObject location;

        public String getDate() {
            return date;
        }

        public void setDate(String date) {
            this.date = date;
        }

        public int getCount() {
            return count;
        }

        public void setCount(int count) {
            this.count = count;
        }

        public JSONObject getLocation() {
            return location;
        }

        public void setLocation(JSONObject location) {
            this.location = location;
        }

        public String getWeek() {
            return week;
        }

        public void setWeek(String week) {
            this.week = week;
        }

        public String getMonth() {
            return month;
        }

        public void setMonth(String month) {
            this.month = month;
        }
    }

}
